<div style="padding: 5px;">
        <form class="layui-form" action="<?=url('xiangmu/add');?>">
            <div class="layui-form-item">
              <label class="layui-form-label">标题</label>
              <div class="layui-input-block">
                <input type="text" name="title" required lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">后台地址</label>
              <div class="layui-input-block">
                <input type="text" name="admin_url" required lay-verify="required" placeholder="请输入后台地址" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">价格1</label>
              <div class="layui-input-block">
                <input type="text" name="price1" required lay-verify="required" placeholder="请输入价格1" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">价格2</label>
              <div class="layui-input-block">
                <input type="text" name="price2" required lay-verify="required" placeholder="请输入价格2" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">价格3</label>
              <div class="layui-input-block">
                <input type="text" name="price3" required lay-verify="required" placeholder="请输入价格3" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">演示地址</label>
              <div class="layui-input-block">
                <input type="text" name="demo_url" placeholder="请输入演示地址" autocomplete="off" class="layui-input">
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">演示二维码</label>
              <div class="layui-input-block">
                  <button type="button" class="layui-btn" _url="<?=url('bbs/api/upimg')?>" id="myupimg">
                    <i class="layui-icon">&#xe67c;</i>上传图片
                  </button>
                  <input type="hidden" name="pic" value="" />
                  <div style="display:inline-block;position:relative;">
                      <span style="position:absolute;right:-15px; top:-15px;cursor:pointer;color:#ccc;font-size:24px;display:none;" id="closeimg">x</span>
                      <img id="pic" height=50 src="" />
                  </div>
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">描述</label>
              <div class="layui-input-block">
                  <textarea name="description" placeholder="请输入描述" class="layui-textarea"></textarea>
              </div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">内容</label>
              <div class="layui-input-block">
                <script id="container" name="content" type="text/plain"></script>
              </div>
            </div>
          <div class="layui-form-item">
            <div class="layui-input-block">
              <button class="layui-btn" lay-submit lay-filter="myform">立即提交</button>
              <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
          </div>
        </form>
</div>
<script>
layui.use(['form'], function(){
  var $ = layui.$
  ,form = layui.form;
  form.render();
  var ue = UE.getEditor('container');
});
</script>
